#pragma once
#ifndef _GUN_OBJECT_H_
#define _GUN_OBJECT_H_
#include "GunBody.h"
#include "BaseObject.h"
#include "BulletObject.h"

class GunObject :
	public BaseObject
{
public:
	Action *mAction;
	GunObject(b2World *_World);
	~GunObject();

	virtual void init(SpriteBatchNode* _Spritebatch, SpriteFrameCache* _Cache, Sprite *_Parent);

	virtual void initAction();

	virtual void update(float dt);

	virtual void draw();

	virtual void destroy();

	virtual void onCollisionWith(BaseObject *_Object);

	virtual void makeJointWithBullet(BaseObject* bullet);

};
#endif _GUN_OBJECT_H_
